<section class="content-header">
    <ol class="breadcrumb">
        <li><a ui-sref="dashboard"><i class="fa fa-dashboard"></i>我的面板</a></li>
        <li><a ui-sref="member">用户资料</a></li>
        <li class="active" ng-bind="current_bread"></li>
    </ol>
</section>
<section class="content">
    <div class="box box-danger">
        <div class="box-header with-border">
            <h3 class="box-title">基本信息</h3>
        </div>
        <form class="form-horizontal" id="member_form">
            <div class="box-body">
                <div class="form-group">
                    <label class="col-sm-2 control-label">姓名<span class="required">*</span></label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="name" ng-model="data.name" data-rule="required; length[~20];">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">英文名</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="english_name" ng-model="data.english_name" data-rule="length[~20];">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户名<span class="required">*</span></label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="username" ng-model="data.username" ng-disabled="action!='add'" placeholder="系统登录帐号">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">手机</label>
                    <div class="col-sm-8">
                        <input type="tel" class="form-control" name="mobile" ng-model="data.mobile" data-rule="length[~20]; mobile;">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">出生日期</label>
                    <div class="col-sm-8">
                        <input type="text" id="birthday" name="birthday" class="form-control date-input" ng-model="data.birthday">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">所属部门<span class="required">*</span></label>
                    <div class="col-sm-8">
                        <select ui-select2 class="form-control select2" name="organization_id" ng-view="organization_name" ng-model="data.organization_id" url="Organization/Search" paging="true"></select>
                        <span id="department-validator" class="cust-validator"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">所属区域<span class="required">*</span></label>
                    <div class="col-sm-8">
                        <select ui-select2 class="form-control select2" name="area_id" ng-view="area_name" ng-model="data.area_id" url="Area/Search" paging="true" data-rule="required;"></select>
                        <span id="area-validator" class="cust-validator"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">职位</label>
                    <div class="col-sm-8">
                        <select ui-select2 class="form-control select2" name="position_id" ng-view="position_name" ng-model="data.position_id" paging="true" url="Position/Search"></select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">入职日期</label>
                    <div class="col-sm-8">
                        <input type="text" id="hiredate" class="form-control date-input" name="hiredate" ng-model="data.hiredate">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">就职状态</label>
                    <div class="col-sm-8">
                        <select class="form-control select2" name="status" ng-model="data.status">
                            <option value="">请选择</option>
                            <option value="1">在职</option>
                            <option value="0">离职</option>
                            <option value="2">停薪留职</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="box-footer">
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
                <button type="button" class="btn btn-info pull-right" ng-click="save()">保存</button>
            </div>
        </form>
    </div>
</section>
